package com.imooc.list_;

import java.util.ArrayList;
import java.util.List;

/**
 * @Date:2022/3/31/9:40
 * @Description:
 */
public class ArrayList_ {
    public static void main(String[] args) {
        List arrayList = new ArrayList();

        for (int i = 0; i < 10; i++) {
            arrayList.add(i); //size = 10
        }
        System.out.println(arrayList);

        for (int i = 11; i < 16 ; i++) {
            arrayList.add(i);  //size = 15
        }

        for (int i = 20; i < 25 ; i++) {
            arrayList.add(i);  //size = ?
        }

        Object o = arrayList.get(0);
        System.out.println(arrayList);


    }
}
